#include <iostream>
using namespace std;
int main ()

{
    int hora;

    cout << "Ingrese la hora exacta" << endl ;
    cin >> hora;

    if (hora > 0 && hora < 12)
    {
        cout << "Buenos dias";
    }
    else if (hora < 20)
    {
        cout << "Buenas tardes";
    }
    else
    {
        cout << "Buenas noches";
    }

    return 1;
}
